home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / tracker-4.13.lha / tracker / defs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-15  |  1.7 KB  |  93 lines

  1. /* defs.h 
  2.     vi:ts=3 sw=3:
  3.  */
  4.  
  5. /* $Id: defs.h,v 4.7 1995/02/08 13:14:56 espie Exp $ 
  6.  * $Log: defs.h,v $
  7.  * Revision 4.7  1995/02/08  13:14:56  espie
  8.  * *** empty log message ***
  9.  *
  10.  * Revision 4.7  1995/02/08  13:14:56  espie
  11.  * *** empty log message ***
  12.  *
  13.  * Revision 4.6  1995/02/01  20:41:45  espie
  14.  * *** empty log message ***
  15.  *
  16.  * Revision 4.6  1995/02/01  20:41:45  espie
  17.  * *** empty log message ***
  18.  *
  19.  * Revision 4.5  1995/02/01  16:39:04  espie
  20.  * Includes moved to defs.h
  21.  *
  22.  * Revision 4.5  1995/02/01  16:39:04  espie
  23.  * Includes moved to defs.h
  24.  *
  25.  * Revision 4.4  1995/01/28  09:23:59  espie
  26.  * Added #ifdef for MIN/MAX.
  27.  *
  28.  * Revision 4.2  1994/07/04  13:57:32  espie
  29.  * Binary stuff.
  30.  * Fixed up ansi C stupid bug.
  31.  * Added prototypes, and `generic' values.
  32.  * Better portability
  33.  * Stupid fix + type casts.
  34.  * Amiga support.
  35.  * Protracker commands.
  36.  */
  37.  
  38. #include "config.h"
  39. #include <stdio.h>
  40. #include <stdlib.h>
  41. #include <string.h>
  42. #ifdef MALLOC_NOT_IN_STDLIB
  43. #include <malloc.h>
  44. #endif
  45.  
  46. #ifndef EXPAND_WILDCARDS
  47. #define EXPAND_WILDCARDS(x,y)
  48. #endif
  49.  
  50. #ifdef BINARY_HEEDED
  51. #define READ_ONLY    "rb"
  52. #define WRITE_ONLY   "wb"
  53. #else
  54. #define READ_ONLY    "r"
  55. #define WRITE_ONLY   "w"
  56. #endif
  57.  
  58. #define LOCAL static
  59. /* X is too short */
  60. #define XT extern
  61.  
  62. #ifndef TRUE
  63. #define TRUE 1
  64. #define FALSE 0
  65. #endif
  66.  
  67. #ifndef MIN
  68. #define MIN(A,B) ((A)<(B) ? (A) : (B))
  69. #endif
  70. #ifndef MAX
  71. #define MAX(A,B) ((A)>(B) ? (A) : (B))
  72. #endif
  73.      
  74. #define D fprintf(stderr, "%d\n", __LINE__);
  75.  
  76. typedef union
  77.    {
  78.    unsigned long scalar;
  79.    float real;
  80.    GENERIC pointer;
  81.    } VALUE;
  82.  
  83. /* predefinitions for relevant structures */
  84. struct tag;
  85. struct channel;
  86. struct song;
  87. struct automaton;
  88. struct sample_info;
  89. struct event;
  90.  
  91.  
  92.  
  93.